/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package dreamwar.controller;

import dreamwar.model.PersistenceProperties;
import javax.persistence.EntityManager;

/**
 *
 * @author Berto_Romero
 */
public class EntityManagerController {

    public EntityManagerController() {
    }
    
    public boolean connect(String user, String password, String url, String port) {
        PersistenceProperties persistenceProperties = PersistenceProperties.getInstance(user, password, url, port);
        return persistenceProperties.isReady();
    }
    
    public EntityManager getEntityManager() {
        return null;
//        return MyEntityManagerFactory.getInstance().getEntityManager();
    }
    
//    public void 
}
